<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    *{
      margin: 0;
      padding: 0;
      text-decoration: none;
    }
    .box{
      width: 410px;
      margin: 30px auto;
    }
    table{
      border: 1px solid #ccc;
      border-spacing: none;
      border-collapse:collapse;
    }
    table thead th{
      background-color:peru;
      color: white;
      font-size: 16px; 
    }
    tr{
      background-color: wheat;
    }
    th,td{
      border:1px solid #ccc;
      padding: 10px;
      font-size: 14px;
    }
    tbody tr:hover{
      cursor: pointer;
      background-color:white;
    }
  </style>
</head>
<body>
  <div class="box">
    <button>清空内容</button>
    <table>
      <thead>
        <tr>
          <th>课程名称</th>
          <th>所属学院</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>JavaScript</td>
          <td>传智播客-前端与移动开发学院</td>
          <td><a href="javascript:;">DELETE</a></td>
        </tr>
        <tr>
          <td>css</td>
          <td>传智播客-前端与移动开发学院</td>
          <td><a href="javascript:;">DELETE</a></td>
        </tr>
        <tr>
          <td>html</td>
          <td>传智播客-前端与移动开发学院</td>
          <td><a href="javascript:;">DELETE</a></td>
        </tr>
        <tr>
          <td>jQuery</td>
          <td>传智播客-前端与移动开发学院</td>
          <td><a href="javascript:;">DELETE</a></td>
        </tr>
      </tbody>
    </table>
  </div>
  <script src="../jquery-1.12.4.min.js"></script>
  <script>
    $('button').on('click',function(){
      $('tbody>tr>td').empty();
    });
    
    $('a').click(function(){
      $(this).parent().parent().remove();
    });
  </script>
</body>
</html>